#include "OgreURLDemoPrecompiledHeader.h"

#include <OgreURLDemo.h>

//-------------------------------------------------------------------------------------------------------------------------------------------------
#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
#	include <windows.h>
#	include <tchar.h>
int PASCAL _tWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpszCmdLine, int nCmdShow )
#else
int main( int argc, char **argv )
#endif // end of #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
{
 
	try
	{
		OgreURLDemo::Application app;
		app.go();
	}
	catch( const std::exception& e )
	{
		std::cerr << "OgreURLDemo: " << e.what();

#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
		// Show mause cursor, if needed.
		ShowCursor(TRUE);
		MessageBoxA( 0, e.what(), "OgreURLDemo", MB_OK );
#endif
		return 1;
	}

	return 0;
}
